<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">

    <h:panelGrid rendered="#{not empty sessionBean.clientId}">
    	<h:outputText value="Client : #{sessionBean.clientId} #{sessionBean.clientNom}" />
        <h:form>
        	<h:commandButton value="Déconnexion" action="#{sessionBean.deconnexion}" />
        </h:form>
    </h:panelGrid>

	<h:form>
	    <h:panelGrid rendered="#{empty sessionBean.clientId}">	    
		    	<h:outputLabel for="idClient" value="Id Client" />
			    <h:inputText id="idClient" value="#{sessionBean.clientId}" />
			                           	    
			    <h:commandButton value="Connexion" action="#{sessionBean.connexion}" />		
	    </h:panelGrid>
    </h:form>
    
    <ui:fragment rendered="#{empty sessionBean.message}"><br /></ui:fragment>
    <h:outputText rendered="#{not empty sessionBean.message}" value="#{sessionBean.message}" />

</ui:composition>